<?php  $this->load->view('admin/service/link_bar');?>
		<form method="post" action="{$this->base_url}admin/service/delete" class="form">
		<div class="box_function">
		<table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
				<tr>
					<td class="tilte_list_pro">
						<input name="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'categoryBox[]', this.checked)" type="checkbox">
					</td>
					<td class="tilte_list_pro">
						ID<br>

					</td>
					<td class="tilte_list_pro">
						Tên dịch vụ
					</td>
					
					<td class="tilte_list_pro">
						Hiển thị
					</td>
					<td class="tilte_list_pro" style="width: 62px;">
						Actions
					</td>
				</tr>

			<?php
			for($i = 0; $i < count($rows); $i++){
				$id = $rows[$i]->item_id;
				$name = $rows[$i]->vi_name;
				
				$enlable = $rows[$i]->active == 1 ? 'checked.jpg' : 'nocheck.jpg';
				//$items .= eval ($this->loadTemplate('admin/service/service_item.tpl'));
                if($i % 2 == 0) $css_class = 'row1';
                            else $css_class = 'row2';
			?>
			<tr onMouseOver="" class="<?php echo $css_class ?>">
		<td class="product center">
			<input name="categoryBox[]" value="<?php echo $id?>" class="noborder" type="checkbox"></td>
		<td class="product center" onclick="document.location = '#'">
		<?php echo $id?>
		</td>

		<td class="product" onclick="document.location = '#'">
		<?php echo $name?>
		</td>
		
		<td class="product center" onclick="document.location = '#'">
			<img src="<?php echo base_url().'images/admin/'.$enlable?>">
		</td>
		<td class="product center">
			<a href="<?php echo $this->base_url?>admin/service/edit/<?php echo $id?>">
				<img src="<?php echo $this->base_url?>/images/admin/edit.gif" alt="Edit" title="Edit" border="0">
			</a>
			<a href="<?php echo $this->base_url?>admin/service/delete/<?php echo $id?>" onclick="return confirm('Delete item #<?php echo $id?>?');">
			<img src="<?php echo $this->base_url?>/images/admin/delete.gif" alt="Delete" title="Delete" border="0">
			</a>
		</td>
</tr>
			<?php
			}
			?>

				<tr>
					<td colspan="10">

			<p>
			<input class="button" name="submitDelcategory" value="Delete selection" onclick="return confirm('Delete selected items?');" type="submit">
			</p>

		</td>
	</tr>
</table>
</div>
		</form>
		<?php echo $this->pagination->create_links();?>